<template>
  <div id="address">
    <h1>项目下载地址</h1>
    <el-collapse v-model="activeName" accordion>
      <el-collapse-item title="算法包下载" name="1">
        <a @click="downJar">点此下载</a>
      </el-collapse-item>
      <el-collapse-item title="前端代码地址" name="2">
        <a href="https://gitee.com/bmitligong/cluster-web"><img src="../assets/gitee-logo.png"></a>
      </el-collapse-item>
      <el-collapse-item title="后端代码地址" name="3">
        <a href="https://gitee.com/bmitligong/cluster-spring"><img src="../assets/gitee-logo.png"></a>
      </el-collapse-item>
      <el-collapse-item title="算法代码地址" name="4">
        <a href="https://gitee.com/bmitligong/cluster-algorithm"><img src="../assets/gitee-logo.png"></a>
      </el-collapse-item>
    </el-collapse>
  </div>
</template>

<script>
export default {
  name: "Address",
  data() {
    return {
      activeName: '1'
    }
  },
  methods:{
    downJar() {
      window.open("http://localhost:8080/cluster-algorithm-2.0-SNAPSHOT.jar")
    }
  }
}
</script>

<style scoped>

</style>
